.modal-form {
    /*z-index: 1000;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.modal {
    width: 100%;
    height: 100%;
}

.modal-dialog {
    margin: 1.75rem auto 1.75rem auto;
    width: auto;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

.modal-dialog-centered {
    display: flex;
    min-height: calc(100% - 1.75rem * 2);
    align-items: center;
}

.modal-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dialog-outer-border-color);
    border-radius: var(--dialog-border-radius);
    background-color: var(--background-color);
    overflow: hidden;
}

.modal-dialog-scrollable {
    height: calc(100% - 1.75rem * 2);
}
.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-header {
    padding: 0.5em;
    border-bottom: 1px solid var(--dialog-outer-border-color);
}

.modal-body {
    flex: 1 1 auto;
    padding: 0.5em;
    display: flex;
    overflow: auto;
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.25em;
    border-top: 1px solid var(--dialog-outer-border-color);
}

.modal-footer > * {
    margin: 0.125rem;
}

.modal-title {
    margin: 0;
}

.modal-backdrop.show {
    opacity: 0.3;
}